#!/usr/bin/env python
# -*- coding: utf-8 -*-

"""
@Project: kubeext-SDS 
@File: kubesds-test.py
@Author: admin
@Date: 2022/6/14 13:56 
@desc: 
"""

import argparse
import traceback

from admTest.autoAdmTest import *

parser = argparse.ArgumentParser(prog="kubesds-test", description="kubesds auto test.")

parser.add_argument("--type",
                    required=True,
                    metavar="[localfs|nfs|ceph_dev]",
                    type=str,
                    choices=["localfs", "nfs", "ceph_dev"],
                    nargs="*",
                    help="storage pool type to use.")
parser.set_defaults(func=main)

try:
    os.putenv('LANG', 'en_US.UTF-8')
    args = parser.parse_args()
    args.func(args)
except TypeError:
    logger.debug(traceback.format_exc())
